<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>来抓我呀</title>
    <script>
        let arr = ["来抓我呀","抓不到吧","急不急","气不气","我又溜了"];
        let index = 1;
        function fn(){
            let btn = document.getElementById("btn");
            btn.style.left = Math.random() * 1300 + "px";
            btn.style.top = Math.random() * 800 + "px";
            btn.value = arr[index++ % arr.length];
        }
    </script>
</head>
<body>
<!--
    当鼠标悬停在按钮上时,按钮会随机变换到浏览器的任意位置
    且按钮内容发生改变
    依次变为:来抓我呀、抓不到吧、急不急、气不气、我又溜了
-->
<input id="btn" type="button" value="来抓我呀" style="position: relative;left: 100px;top: 100px;" onmouseover="fn()">
</body>
</html>